package com.accompany.service.impl;

import com.accompany.model.Patient;
import com.accompany.dao.PatientMapper;
import com.accompany.service.PatientService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 就诊人 服务实现类
 * </p>
 *
 * @author lfs
 * @since 2023-03-08
 */
@Service
public class PatientServiceImpl extends ServiceImpl<PatientMapper, Patient> implements PatientService {

    @Autowired
    PatientMapper mapper;

    @Override
    public List<Patient> getPatient(int userId) {
        return mapper.selectPatients(userId);
    }
}
